<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont back-icon">&#xe685;</div>
    </div>
    <div class="header-input">
      <span class="iconfont search-icon">&#xe651;</span>
        输入城市/景点/游玩主题
    </div>
    <router-link to="/city">
    <div class="header-right">
      {{this.$store.state.city}}
      <span class="iconfont city-icon" >&#xe611;</span>
    </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
}
</script>

<style lang="less" scoped>
@import '~@/assets/styles/varibles.less';
.header {
  display: flex;
  line-height: 0.86rem;
  background-color: @bacc;
  color: #ffffff;
  .header-left {
    width: 0.64rem;
    float: left;
    text-align: center;
    .back-icon{
      font-size: .4rem;
    }
  }
  .header-input {
    flex: 1;
    height: 0.64rem;
    line-height: 0.64rem;
    margin-top: 0.12rem;
    margin-left: 0.2rem;
    background-color: #fff;
    border-radius: 0.1rem;
    color: #cccccc;
    text-align: center;
    font-size: .28rem;
    .search-icon{
      font-size: .28rem;
    }
  }
  .header-right {
    min-width: 1.04rem;
    padding: 0 .1rem;
    float: right;
    text-align: center;
    color: #fff;
    .city-icon{
      font-size: .28rem;
    }
  }
}
</style>